import request from '@/utils/request'

const BASE_URL = '${baseUrl}'

export function get${meta}Page(params) {
  return request({
    url: BASE_URL + 'page?pageNo=' + params.pageNo + '&pageSize=' + params.pageSize,
    method: 'post',
    data: params
  })
}

export function add${meta}(params) {
  return request({
    url: BASE_URL + 'add',
    method: 'post',
    data: params
  })
}

export function edit${meta}(params) {
  return request({
    url: BASE_URL + 'edit',
    method: 'post',
    data: params
  })
}

export function delete${meta}(params) {
  return request({
    url: BASE_URL + 'delete?id=' + params.id,
    method: 'get'
  })
}

export function get${meta}(params) {
  return request({
    url: BASE_URL + 'item?id=' + params.id,
    method: 'get'
  })
}